home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / returnto.zip / RUNPROGR.BAT < prev    next >
DOS Batch File  |  1993-04-06  |  1KB  |  34 lines

  1. @ECHO OFF
  2. rem  EXAMPLE APPLICATIONS BATCH FILE (runprogr.BAT)
  3. rem
  4. rem  ----------------------------------------------------------------------
  5. rem  Purpose:  to run MYPROGRM, which is not in the current directory,
  6. rem  *and return to the starting drive and directory*; MYPROGRM is a program
  7. rem  that must be run from its own directory or is not in a PATH'd directory
  8. rem  ----------------------------------------------------------------------
  9. rem
  10. rem  See remark statements in SETRETRN.BAT for a full description of the
  11. rem  function and requirements of SETRETRN.BAT, DORETURN.BAT, and runprogr.BAT.
  12. rem
  13. rem  If DOS version is earlier than 3.3, delete @ and substitute COMMAND /C
  14. rem  for CALL in this batch file.  The batch files SETRETRN.BAT and
  15. rem  DORETURN.BAT must be in a PATH'd directory.  *This* file (runprogr.BAT)
  16. rem  must also be in a PATH'd directory.
  17. rem
  18. rem  "runprogr" can be a name of your choosing and "MYPROGRM" is the name of
  19. rem  the applications program to run; e.g., "runprogr.BAT" = "EDIT.BAT" and
  20. rem  "MYPROGRM" = "QEDIT".
  21. rem
  22. rem  RETURNTO.ZIP:  RUNPROGR.BAT, SETRETRN.BAT, DORETURN.BAT
  23. rem  Derived from item in PC Magazine, June 26, 1990 (Vol. 9, No. 12)
  24. rem
  25. rem  ---------------------------------------------- ==Bruce M. Bowman== ---
  26. rem
  27. CALL SETRETRN
  28. rem -- Modify lines below as req'd.  No changes in SETRETRN.BAT & DORETURN.BAT.
  29. C:
  30. CD \UTILS
  31. MYPROGRM %1 %2
  32. rem -- Modify lines above as required.
  33. CALL DORETURN
  34.